package com.repair.payment.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.repair.datasource.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 郑春雨
 * @since 2024-10-16
 */
@Getter
@Setter
@TableName("payment")
@ApiModel(value = "Payment对象", description = "")
public class Payment extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("付款单号")
    @TableField("pay_order_num")
    private String payOrderNum;

    @ApiModelProperty("付款方式")
    @TableField("method")
    private String method;

    @ApiModelProperty("付款账户")
    @TableField("account")
    private String account;

    @ApiModelProperty("订单编号")
    @TableField("order_num")
    private String orderNum;

    @ApiModelProperty("付款人id")
    @TableField("payer_id")
    private Long payerId;

    @ApiModelProperty("支付成功时间")
    @TableField("succeed_time")
    private LocalDateTime succeedTime;

    @ApiModelProperty("付款金额")
    @TableField("price")
    private BigDecimal price;

}
